"use strict"
/**
 * @param {import("egg").Application} app
 */
module.exports = app => {
	const Sequelize = app.Sequelize
	const sequelize = app.model
	let userProp = sequelize.define("userProp", {
		oid: {
			type: Sequelize.INTEGER,
			allowNull: false
		},
		level: {
			//销售的轮次
			type: Sequelize.INTEGER,
			allowNull: false
		},
		propid: {
			type: Sequelize.INTEGER,
			allowNull: false
		},
		num: {// 数量
			type: Sequelize.INTEGER,
			defaultValue: 0
		},
		stat: {
			type: Sequelize.TINYINT
		}
	}, {
		timestamps: false,
		comment: "用户道具 additionProp",
		tableName: "empire_user_prop"
	})
	return userProp
}